public class Example08 {public static void main(String[] args){
    double maxTemp = 37.0;
    double t = 37.5;
    if(t > maxTemp){
        System.out.println("温度异常");
    }
    System.out.println(t > maxTemp ? "温度异常" : "温度正常");
}

}
